/*
* 接口管理
* **/


export class WebUrl{

    static ip:string='43.138.239.123';//
    static port:string='8090';
    static contextPath:string = '/bpm';
    //static baseUrl:string='http://211.157.177.10:8088';
    static baseUrl:string;
    static getSetingUrl:string;//获取ip和端口
    static loginSetingUrl:string;//登录设置
    static updatePwdUrl:string;//修改密码
    static loginUrl:string;//登录

    static notifyListUrl:string;//公告列表
    static notifyDetailUrl:string;//公告详情
    static toDoUrl:string;//首页待办
    static expensesUrl: string;// 我的报销

    static checkListUrl:string;//审核列表
    static checkDetailUrl:string;//审核详情
    static checkInfoUrl:string;//审核信息
    static toDoApprovalUrl:string;//待办审批

    static AboutUsUrl:string;//关于
    static encodeUrl:string;//加密串

    static getProjectUrl:string;//指标项目信息
    static getDeptUrl:string;//部门信息

    static getPayItemsUrl:string;//支出事项
    static yearsBudgetUrl:string;//年度预算
    static sysMsgUrl:string;//系统信息
    static msgDetailUrl:string;//消息详情
    static contractInfoUrl:string;//合同信息
    static requestInfoUrl:string;//申请单信息

    static fileUploadUrl:string;//文件上传
    static fileDownLoadUrl:string;//文件下载
    static getPayDetailUrl:string;//支出明细
    static assistInfoUrl:string;//辅助信息

    static accountInfoUrl:string;//结算信息
    static imgPlayListUrl:string;//获取图片
    static payGuideListUrl:string;//支出指南
    static payGuideDetailUrl:string;//支出详情
    static applyDetailUrl:string;//报销详情
    static indexSelectUrl:string;//指标查询
    static liuChenXXUrl:string;//流程信息
    static applyMoneyDXXUrl:string;//获取资金申请单信息
    static detailSumMoneyUrl:string;//获取支出明细总计金额与费用信息标准值
    static getBaoXiaoLXUrl:string;
    static updateSysMsgState:string;//修改系统消息状态
    static panDianSaveUrl:string;//保存盘点
    static panDetialUrl:string;//盘点详情
    static panDianListUrl:string;//盘点列表
    static panDianConfirm:string;//盘点确认
    static zjsqdbspDetails:string;//代办审批资金
    static zxsqdbspDetails:string;//代办审批执行
    static zxsqdbspApprove:string;//执行审批
    static zjsqdbspApprove:string;
    static cgxqdbspDetail:string;//审批详情(采购需求)
    static cgxqdbspApprove:string;//审批(采购需求审批)
    static htgldbspDetail:string;//审批详情(合同签订)
    static htgldbspApprove:string;//审批(合同签订审批)
    static htgldbspBgdetail:string;//审批详情(合同变更)
    static htgldbspBgapprove:string;//审批(合同变更审批)
    static validateUrl:string;//用户认证
    static settingPropertiesUrl:string;//配置文件设置
    static faPiaoYZUrl:string;//发票验证
    static ziChanXiangXiXXUrl:string;//资产卡片详细信息
    static verifyCodeUrl:string;//获取验证码
    static loginByPhone:string;//手机登录
    static getBackgroundImageUrl:string;//登录页图片
    static baseSetting(url:string){
        WebUrl.yearsBudgetUrl= url+WebUrl.contextPath+'/common/years';
        WebUrl.loginUrl = url+WebUrl.contextPath+'/common/login';
        WebUrl.getSetingUrl = url+WebUrl.contextPath+'/login/getSetting';
        WebUrl.loginSetingUrl= url+WebUrl.contextPath+'/login/setting';
        WebUrl.updatePwdUrl = url+WebUrl.contextPath+'/common/changePWD';
        WebUrl.AboutUsUrl = url+ WebUrl.contextPath+'/common/about';
        WebUrl.accountInfoUrl = url+WebUrl.contextPath+'/common/accounts';
        WebUrl.applyDetailUrl =url+WebUrl.contextPath+'/bxsq/save';
        WebUrl.assistInfoUrl = url+WebUrl.contextPath+'/common/auxiliary';
        WebUrl.checkDetailUrl =url+WebUrl.contextPath+'/dbsp/detail';
        WebUrl.checkInfoUrl = url+WebUrl.contextPath+'/dbsp/approve';
        WebUrl.checkListUrl = url+WebUrl.contextPath+'/dbsp/list';
        WebUrl.contractInfoUrl =url+WebUrl.contextPath+'/common/getHeTongXX';
        WebUrl.encodeUrl = url+WebUrl.contextPath+'/common/encode';
        WebUrl.fileDownLoadUrl = url+WebUrl.contextPath+'/common/download';
        WebUrl.getDeptUrl = url+WebUrl.contextPath+'/common/getDept';
        WebUrl.fileUploadUrl = url+WebUrl.contextPath+'/common/upload';
        WebUrl.getPayDetailUrl = url+WebUrl.contextPath+'/common/getDetail';
        WebUrl.getPayItemsUrl = url+WebUrl.contextPath+'/common/getItems';
        WebUrl.getProjectUrl= url+WebUrl.contextPath+'/common/getProjects';
        WebUrl.indexSelectUrl = url+WebUrl.contextPath+'/zbcx/list';
        WebUrl.msgDetailUrl = url+WebUrl.contextPath+'/common/getMessageById';
        WebUrl.notifyDetailUrl = url+WebUrl.contextPath+'/tzgg/detail';
        WebUrl.notifyListUrl = url+WebUrl.contextPath+'/tzgg/list';
        WebUrl.payGuideDetailUrl = url+WebUrl.contextPath+'/zczn/detail';
        WebUrl.payGuideListUrl = url+WebUrl.contextPath+'/zczn/list';
        WebUrl.requestInfoUrl = url+WebUrl.contextPath+'/common/getZhiXingSQDXX';
        WebUrl.sysMsgUrl = url+WebUrl.contextPath+'/common/sysMessage';
        WebUrl.imgPlayListUrl = url+WebUrl.contextPath+'/common/getImages';
        WebUrl.liuChenXXUrl=url+WebUrl.contextPath+'/common/getLiuChenXX';
        WebUrl.applyMoneyDXXUrl=url+WebUrl.contextPath+'/common/getZiJinSQDXX';
        WebUrl.detailSumMoneyUrl = url+WebUrl.contextPath+'/common/getDetailSumMoney';
        WebUrl.getBaoXiaoLXUrl = url+WebUrl.contextPath+'/common/getBaoXiaoLX';
        WebUrl.toDoUrl = url+WebUrl.contextPath+'/tzgg/sydb';
        WebUrl.expensesUrl = url+WebUrl.contextPath+'/dbsp/wdbx';
        WebUrl.toDoApprovalUrl = url+WebUrl.contextPath+'/dbsp/dblist';
        WebUrl.updateSysMsgState = url+WebUrl.contextPath+'/common/sysMUpdateState';
        WebUrl.panDetialUrl =url+WebUrl.contextPath+'/panDetial';
        WebUrl.panDianListUrl=url+WebUrl.contextPath+'/panDianList';
        WebUrl.panDianSaveUrl=url+WebUrl.contextPath+'/panDianSave';
        WebUrl.panDianConfirm=url+WebUrl.contextPath+'/panConfirm';
        WebUrl.zjsqdbspDetails=url+WebUrl.contextPath+'/zjsqdbsp/detail';
        WebUrl.zxsqdbspDetails =url+WebUrl.contextPath+'/zxsqdbsp/detail';
        WebUrl.zxsqdbspApprove =url+WebUrl.contextPath+'/zxsqdbsp/approve';
        WebUrl.zjsqdbspApprove =url+WebUrl.contextPath+'/zjsqdbsp/approve';
        WebUrl.cgxqdbspApprove =url+WebUrl.contextPath+'/cgxqdbsp/approve';
        WebUrl.cgxqdbspDetail =url+WebUrl.contextPath+'/cgxqdbsp/detail';
        WebUrl.htgldbspApprove =url+WebUrl.contextPath+'/htgldbsp/approve';
        WebUrl.htgldbspDetail =url+WebUrl.contextPath+'/htgldbsp/detail';
        WebUrl.htgldbspBgapprove=url+WebUrl.contextPath+'/htgldbsp/bgapprove';
        WebUrl.htgldbspBgdetail=url+WebUrl.contextPath+'/htgldbsp/bgdetail';
        WebUrl.validateUrl=url+WebUrl.contextPath+'/common/validate';
        WebUrl.settingPropertiesUrl=url+WebUrl.contextPath+'/login/settingProperties';
        WebUrl.faPiaoYZUrl=url+WebUrl.contextPath+'/common/FaPiaoYZ';
        WebUrl.ziChanXiangXiXXUrl = url+WebUrl.contextPath+'/ZiChanXiangXiXX';
        WebUrl.verifyCodeUrl = url+WebUrl.contextPath+'/msg/send';
        WebUrl.loginByPhone = url+WebUrl.contextPath+"/msg/verify";
        WebUrl.getBackgroundImageUrl = url + WebUrl.contextPath + "/common/getBackgroundImageUrl";
    }
    static setIpAndPost(ip:string,port:string){
        WebUrl.baseUrl='http://'+ip+':'+port;
    }
}
WebUrl.setIpAndPost(WebUrl.ip,WebUrl.port);
WebUrl.baseSetting(WebUrl.baseUrl);
